package
{
	import flash.display.Graphics;
	import flash.display.Sprite;
	import flash.text.TextField;
	
	public class Tip extends Sprite
	{

		private var textField:TextField;
		public function Tip()
		{
			super();
			
			var g:Graphics = this.graphics;
			g.beginFill(0x0,0.3);
			g.drawRect(0,0,500,50);
			g.endFill();
			
			textField = new TextField();
			this.addChild( textField );
			textField.wordWrap = true;
			
			textField.width = 400;
			textField.height = 50;
		}
		
		public function updateTip(str:String):void
		{
			textField.text = str;
		}
	}
}